package m1.server.connectionmanager;

import m2.component.Component;
import m2.component.iface.ComponentInterface;

public class ConnectionManager extends Component {

	private DbQuery dbQuery;
	private ExternalSocket externalSocket;
	private SecurityCheck securityCheck;
	
	public ConnectionManager(String name) {
		super(name);
		dbQuery = new DbQuery("DbQuery");
		externalSocket = new ExternalSocket("ExternalSocket");
		securityCheck = new SecurityCheck("SecurityCheck");
		addInterfaceFourni(new ComponentInterface("InterfaceExternalSocket"), externalSocket);
		addInterfaceRequis(new ComponentInterface("InterfaceDbQuery"), dbQuery);
		addInterfaceRequis(new ComponentInterface("InterfaceSecurityCheck"), securityCheck);
	}

	public DbQuery getDbQuery() {
		return dbQuery;
	}

	public ExternalSocket getExternalSocket() {
		return externalSocket;
	}

	public SecurityCheck getSecurityCheck() {
		return securityCheck;
	}

}
